/**
 * fileName:  EfficacyStore.java
 * author:  Lei
 * Company:  Cloudland Studio
 * Createdate:  2014-5-29 下午9:46:46
 *
 * All rights Reserved, Designed By cloudland Copyright(C) 2010-2011
 *   
 * Modification  History:
 *     Date           Author        Version        
 * -------------------------------------------
 * 2014-5-29          Lei            1.0        
 *
 * Why & What is modified:
 * 1.0: 文件创建
 */
package org.cloudland.commercial.masterdata.handler;

import org.cloudland.commercial.masterdata.bean.EfficacyInfo;
import org.cloudland.commercial.masterdata.store.PageResult;

 /**
 * <pre> 
 * 功效信息仓储
 * </pre>
 * @ClassName  EfficacyStore
 * @author  Lei
 * @version  %I%, %G%
 * @see  
 * @since   JDK1.6
 *
 */
public interface EfficacyStore {

	/**
	 * <pre>
	 * 创建功效信息
	 * </pre>
	 *
	 * @return   
	 */
	EfficacyInfo createEfficacyInfo();
	
	/**
	 * <pre>
	 * 查询功效信息
	 * </pre>
	 *
	 * @param efficacyId
	 * @return   
	 */
	EfficacyInfo findEfficacyInfoById(String efficacyId);
	
	/**
	 * <pre>
	 * 查询全部功效信息
	 * </pre>
	 *
	 * @return   
	 */
	EfficacyInfo[] findEfficacyInfoAll();
	
	
	/**
	 * <pre>
	 * 分页查询功效信息
	 * </pre>
	 *
	 * @param startNo 开始行数
	 * @param pageSize 查询行数
	 * @return   
	 */
	PageResult<EfficacyInfo> findPageEfficacyInfo(Integer startNo, Integer pageSize);
	
	/**
	 * <pre>
	 * 按名称查询功效信息
	 * </pre>
	 *
	 * @param name 功效名称
	 * @param startNo 开始行数
	 * @param pageSize 查询行数
	 * @return   
	 */
	PageResult<EfficacyInfo> findEfficacyInfoByName(String name, Integer startNo, Integer pageSize);
	
	/**
	 * <pre>
	 * 删除功效信息
	 * </pre>
	 *
	 * @return   
	 */
	Boolean removeEfficacyInfo(String efficacyId);
}
